/**
 * @BelongsProject: test
 * @BelongsPackage: com.hmall.order.controller
 * @Author: 王明天
 * @CreateTime: 2025/2/19 17:22
 * @Description: OrderController
 */
package com.hmall.order.controller;


import com.hmall.order.domain.Order;
import com.hmall.order.service.IOrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/order")
@RestController
@RequiredArgsConstructor
public class OrderController {

    private final IOrderService orderService;
    @GetMapping("/{id}")
    public Order getOrderById(@PathVariable("id") Long id){
        return orderService.getOrderById(id);
    }


}
